package kr.co.probrain.kyi0717.action;

import java.sql.*;
import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
 
import kr.co.probrain.kyi0717.beans.Board;
import kr.co.probrain.kyi0717.controller.CommandAction;
import kr.co.probrain.kyi0717.dao.BoardDao;

public class ListAction implements CommandAction {

	@Override
	public String requestPro(HttpServletRequest request,
			HttpServletResponse response) throws Throwable {
		
			ArrayList<Board> articleList = BoardDao.getInstance().getArticleList();	
			request.setAttribute("articleList", articleList);
		
		return "list.jsp";
	}

}
